Release 10.1A: OpenEdge Data Management:
SQL Reference
GROUP BY clause
Specifies grouping of rows in the result table.
Syntax
Notes
Example
- For the first column specified in the
GROUPBYclause, SQL arranges rows of the result table into groups whose rows all have the same values for the specified column.- If you specify a second
GROUPBYcolumn, SQL groups rows in each main group by values of the second column.- SQL groups rows for values in additional
GROUPBYcolumns in a similar fashion.- All columns named in the
GROUPBYclause must also be in the select list of the query expression. Conversely, columns in the select list must also be in theGROUPBYclause or be part of an aggregate function.This example retrieves name and order info for customers with orders:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |